package com.iraeta.service;

import com.iraeta.dao.BpmMakeDateDao;
import com.iraeta.entity.BussDanJu;
import com.iraeta.entity.Cbtest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BpmMakeDateService {
    @Autowired
    BpmMakeDateDao makeDateDao;

    public Cbtest getCbTest(Integer id){
        return makeDateDao.getCbTest(id);
    }

    public List<Cbtest> listCbTest(){
        return makeDateDao.listCbTest();
    }

    public List<BussDanJu> listBussDanJu(String tableName, String dhName, String key1){
        return makeDateDao.listBussDanJu(tableName, dhName, key1);
    }

    public void updateBussDanJuDDate(String tableName, long iid, String dDate){
        makeDateDao.updateBussDanJu(tableName, iid, dDate);
    }
}
